package com.numberone.master.modules.orders.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.numberone.master.common.persistence.Page;
import com.numberone.master.common.service.CrudService;
import com.numberone.master.modules.orders.entity.RechargeOrder;
import com.numberone.master.modules.orders.dao.RechargeOrderDao;

/**
 * 充值流水订单Service
 * @author ck
 * @version 2018-03-26
 */
@Service
@Transactional(readOnly = true)
public class RechargeOrderService extends CrudService<RechargeOrderDao, RechargeOrder> {
	@Autowired
	private RechargeOrderDao rechargeOrderDao;

	public RechargeOrder get(String id) {
		return super.get(id);
	}
	
	public List<RechargeOrder> findList(RechargeOrder rechargeOrder) {
		return super.findList(rechargeOrder);
	}
	
	public Page<RechargeOrder> findPage(Page<RechargeOrder> page, RechargeOrder rechargeOrder) {
		return super.findPage(page, rechargeOrder);
	}
	
	@Transactional(readOnly = false)
	public void save(RechargeOrder rechargeOrder) {
		super.save(rechargeOrder);
	}

	@Transactional(readOnly = false)
	public void update(RechargeOrder rechargeOrder) {
		super.update(rechargeOrder);
	}
	
	@Transactional(readOnly = false)
	public void delete(RechargeOrder rechargeOrder) {
		super.delete(rechargeOrder);
	}
	
	@Transactional(readOnly = true)
	public RechargeOrder findRechargeLsByLsno(String orderNo) {
		return rechargeOrderDao.findRechargeLsByLsno(orderNo);
	}
	
}